package com.xxx.yuedong.mine.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.yuedong.mine.pojo.User;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mr.Zhao
 * @since 2023-07-31
 */
@Mapper
public interface UserDao extends BaseMapper<User> {
    public ArrayList<String> searchUserPermission(Long id);

    public int insert(User user);

    public HashMap login(HashMap param);

    public HashMap searchUserInfo(Long userId);

    public List<HashMap> searchAllUserInfo();

    public long searchUserByUsername(String username);

    public int insertGuidePageData(HashMap param);

    public ArrayList<HashMap> searchAllUserByPage(HashMap param);

    public Integer searchAllUserCount(HashMap param);

    public Integer updateAdmin(HashMap param);

    public Integer updatePoints(HashMap param);

    public Integer searchUserPoints(Long id);

}
